#include <opencv2/opencv.hpp>
#include <iostream>

int main(int argc, char** argv) {
  cv::Mat img_rgb;

  img_rgb = cv::imread(argv[1]);
  if (img_rgb.empty()) {
    std::cout << "please input: ./drtuning <picture path>" << std::endl;
    return -1;
  }  
  
  //draw a line
	cv::line(img_rgb, cv::Point(0, img_rgb.size().height / 2), cv::Point(img_rgb.size().width, img_rgb.size().height / 2), cv::Scalar(0, 0, 255));
	//draw a rectangle
	cv::rectangle(img_rgb, cv::Point(img_rgb.size().width/4, img_rgb.size().height/4), 
        cv::Point(img_rgb.size().width- img_rgb.size().width / 4, img_rgb.size().height - img_rgb.size().height/4), cv::Scalar(0, 255, 255));
	//draw a circle
	cv::circle(img_rgb, cv::Point(img_rgb.size().width / 2, img_rgb.size().height / 2), 300, cv::Scalar(255, 0, 255));
  cv::namedWindow("draw", cv::WINDOW_FREERATIO);
	cv::imshow("draw", img_rgb);

  cv::waitKey(0);

  return 0;
}